package com.xyp.iodemo.nettyrpcserver;

import com.xyp.iodemo.nettyrpccommon.api.IUserService;
import com.xyp.iodemo.nettyrpcserver.api.impl.UserServiceImpl;
import com.xyp.iodemo.nettyrpcserver.netty.EchoServerImpl;
import com.xyp.iodemo.nettyrpcserver.netty.IEchoServer;

import java.util.logging.Logger;

/**
 * @author xuyuanpeng
 * @version 1.0
 * @date 2019-04-09 21:31
 */
public class Starter {
    private static Logger logger = Logger.getLogger("Starter");

    //private static String packages="com.xyp.iodemo.nettyrpcserver.api";
    public static void main(String [] agres) throws Exception {
        IEchoServer echoServer=new EchoServerImpl(8088);
        //可以基于注解遍历

        echoServer.register(IUserService.class, UserServiceImpl.class);
        echoServer.start();
    }
}
